xm: Remove redundant os.waitpid() call from do_console()
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Jun 2009 09:57:39 +0000 (10:57 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Jun 2009 09:57:39 +0000 (10:57 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/python/xen/xm/create.py

index a9806099f7a84d0d94a3f2ea79807ecb44b88fe1..a36371aab56acc5c135d9756c08f3c4eb0b0c6c5 100644 (file)
@@ -1407,7 +1407,6 @@ def do_console(domain_name):
                 # the child process used to do this has detached
                 print("Domain has already finished");
                 break
-            (p, rv) = os.waitpid(cpid, os.WNOHANG)
             if os.WIFEXITED(rv):
                 if os.WEXITSTATUS(rv) != 0:
                     sys.exit(os.WEXITSTATUS(rv))